


from  rest_framework import serializers
from .models import  Bannder
class BannerSerializer(serializers.ModelSerializer):
    class Meta:
        model=Bannder
        fields=['id','link','image']

    # image=serializers.SerializerMethodField()
    # def get_image(self,obj):
    #     print(obj.image)
    #
    #     return 'http://127.0.0.1:8000/media/'+str(obj.image)